package com.css.openapi.BO;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/*
 *出租车订单详情
 */
@Data
public class TaxiDetailVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Min(value=1,message ="明细序号不能小于1" )
    @ApiModelProperty("明细序号")
    @JsonProperty(value = "mxxh")
    private Integer mxxh;

    @ApiModelProperty("税率/征收率")
    @JsonProperty(value = "slzsl")
    private String slzsl;

    @ApiModelProperty("商品和服务税收分类编码")
    @JsonProperty(value = "sphfwflbm")
    private String sphfwflbm;

    @ApiModelProperty("项目名称")
    @JsonProperty(value = "xmmc")
    private String xmmc;

    @ApiModelProperty("车牌号")
    @JsonProperty(value = "licensePlateNumber")
    private String licensePlateNumber;

    @ApiModelProperty("省份代码")
    @JsonProperty(value = "provinceCode")
    private String provinceCode;

    @ApiModelProperty("计程（里程）")
    @JsonProperty(value = "mileage")
    private BigDecimal mileage;

    @ApiModelProperty("计时（时长）")
    @JsonProperty(value = "tripDuration")
    private String tripDuration;

    @ApiModelProperty("上车时间")
    @JsonProperty(value = "pickUpTime")
    private String pickUpTime;

    @ApiModelProperty("下车时间")
    @JsonProperty(value = "dropOffTime")
    private String dropOffTime;

    @ApiModelProperty("等候时长")
    @JsonProperty(value = "waitingTime")
    private String waitingTime;

    @ApiModelProperty("单价（公里/元）")
    @JsonProperty(value = "price")
    private BigDecimal price;

    @ApiModelProperty("司机身份证件号码")
    @JsonProperty(value = "idCardNo")
    private String idCardNo;

    @ApiModelProperty("税号（统一社会信用代码/纳税人识别号）")
    @JsonProperty(value = "taxNo")
    private String taxNo;

    @ApiModelProperty("数量")
    @JsonProperty(value = "num")
    private Integer num;

    //旅客运输增加ggxh，dw,taxAmount,mxxh
    @ApiModelProperty("规格型号")
    @JsonProperty(value = "ggxh")
    private String ggxh;
    @ApiModelProperty("单位")
    @JsonProperty(value = "unit")
    private String unit;
    @ApiModelProperty("价税合计")
    @Digits(integer=16,fraction = 2,message = "价税合计格式错误")
    @JsonProperty(value = "taxAmount")
    private BigDecimal taxAmount;

    @ApiModelProperty("发票行性质（00：正常行，01：折扣行，02：被折扣行）")
    @JsonProperty(value = "fphxz")
    private String fphxz="00";

    @ApiModelProperty("优惠政策标识")
    @JsonProperty(value = "yhzcbs")
    private String yhzcbs;

    @ApiModelProperty("出行人信息")
    @JsonProperty(value = "passengers")
    private List<PassengerVO> passengers;
}
